package test_01;

import java.util.Arrays;

public class test05 {
    public static void main(String[] args) {

        int[] arr = new int[10];

        for (int i = 0; i < arr.length; i++) {
            arr[i] = (int) (Math.random() * 100 + 1);
        }
        System.out.println(Arrays.toString(arr));

        int n = arr.length - 1;

        for (int i = 0; i < arr.length / 2; i++) {
            int temp = arr[n - i];
            arr[n - i] = arr[i];
            arr[i] = temp;
        }

        System.out.println(Arrays.toString(arr));

    }
}
